/*
  Styles for the default global modal go here.
  Specific modal styles should go in their own respective css files.
*/

.ReactModal__Overlay {
    background-color: rgba(50,50,50,.4) !important;
    z-index: 500;
    overflow: auto;

    @import "./buttons.scss";
    @import "./utilities.scss";

    .Modal {
        position: absolute;
        top: 50%;
        left: 50%;
        border: 1px solid #C4C8CA;
        border-radius: 6px;
        padding: 0;
        margin: 0;
        outline: none;
        background: #ffffff;
        overflow: hidden;
        transform: translate(-50%, -50%);
    
        &.tall {
            top: 60px;
            transform: translate(-50%, 0);
        }
    
        &.DefaultSize {
            width: 100%;
            max-width: 400px;
          }
        &.MediumSize {
            width: 100%;
            max-width: 600px;
        }
        &.LargeSize {
            width: 100%;
            max-width: 800px;
        }
        
        .Modal-header {
            padding: 20px 25px 0;
            margin: 0;
        }
        
        .Modal-header p {
            font-size: 22px;
            font-weight: bold;
            color: #4A4A4A;
            line-height: 34px;
            margin: 0;
        }
        .Modal-header.has-border {
            border-bottom: 1px solid #C4C8CA;
            padding: 20px 25px 18px;
        }
        .Modal-body {
            padding: 20px 25px;
            overflow: auto;
            -webkit-overflow-scrolling: touch;
        }
    }
}

  
  @media screen and (max-height: 43em) {
    .Modal {
      top: 60px;
      transform: translate(-50%, 0);
    }
  }
  